#!/usr/bin/env bash
# chkconfig: - 85 15

pythonPath=/usr/local/python3/bin

function start() {
    $pythonPath/python3  $pythonPath/ssserver -p 10040 -k rffanlab -m aes-256-ctr --user nobody -d start
}

function stop() {
    $pythonPath/python3  $pythonPath/ssserver -d stop
}

function restart() {
    stop
    start
}


case "$1" in
start)
        start
        ;;

stop)
        stop
        ;;

reload)
        reload
        ;;

restart)
        stop
        start
        ;;
*)
    ;;
esac